Rectal resection with permanent colostomy